<!DOCTYPE html>
<html lang="zh-cn"  xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>index.html</h1>
    <form th:action="@{/user}" method="post">
        用户名：<input type="text" name="uname"> <br />
        密码：<input type="password" name="password"> <br />
        <input type="submit" value="测试post提交"> <br />
    </form>

    <hr />
    <form th:action="@{/user/1001}" method="post">
        <!--隐藏域，设置当前实际的请求方式-->
        <input type="hidden" name="_method" value="put">
        用户名：<input type="text" name="uname"> <br />
        密码：<input type="password" name="password"> <br />
        <input type="submit" value="测试put提交"> <br />
    </form>

    <hr />
    <form th:action="@{/user/1001}" method="post">
        <!--隐藏域，设置当前实际的请求方式-->
        <input type="hidden" name="_method" value="delete">
        用户名：<input type="text" name="uname"> <br />
        密码：<input type="password" name="password"> <br />
        <input type="submit" value="测试delete提交"> <br />
    </form>

    <hr />
    <form th:action="@{/users/1,4,6,3,8}" method="post">
        <!--隐藏域，设置当前实际的请求方式-->
        <input type="hidden" name="_method" value="delete">
        用户名：<input type="text" name="uname"> <br />
        密码：<input type="password" name="password"> <br />
        <input type="submit" value="测试delete批量删除提交"> <br />
    </form>
</body>
</html>